<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>homepage</title>
    <link rel="stylesheet" href="./css/public.css">
    <link rel="stylesheet" href="./css/index.css">
</head>
<body>
    <div class="container">
        <div class="menu i">
            <div class="logo"><i>&#xebc7;</i>LAdmin</div>
            <div class="classify">分类</div>
                <div class="secondary change left_border drop_down" id='my'>&#xe648;<span class="center">主页</span></div>
                <div class="secondary">&#xe748;<span class="center">用户</span><span class="right">&#xe636;</span></div>
                    <ul class="drop_list">
                        <li id="overview_table">用户总览</li>
                    </ul>
            <div class="classify">分类</div>
                <div class="secondary">&#xe605;<span class="center">文章</span><span class="right">&#xe636;</span></div>
                    <ul class="drop_list">
                        <li id="article_all">文章总览</li>
                        <li id="article">发布文章</li>
                        <li id="classify">文章分类</li>
                    </ul>
                <div class="secondary">&#xe85c;<span class="center">角色</span><span class="right">&#xe636;</span></div>
                    <ul class="drop_list">
                        <li id="role">分类列表</li>
                    </ul>
                <div class="secondary">&#xe642;<span class="center">凑数好看用的</span><span class="right">&#xe636;</span></div>
                    <ul class="drop_list">
                        <li>百度ECharts</li>
                        <li>Flot</li>
                        <li>Morris.js</li>
                        <li>Rickshaw</li>
                        <li>peity</li>
                    </ul>
            <div class="classify">分类</div>
            <div class="secondary">&#xe642;<span class="center">凑数好看用的</span><span class="right">&#xe636;</span></div>
                <ul class="drop_list">
                    <li>百度ECharts</li>
                    <li>Flot</li>
                    <li>Morris.js</li>
                    <li>Rickshaw</li>
                    <li>peity</li>
                </ul>
                <div class="secondary">&#xe642;<span class="center">凑数好看用的</span><span class="right">&#xe636;</span></div>
                    <ul class="drop_list">
                        <li>百度ECharts</li>
                        <li>Flot</li>
                        <li>Morris.js</li>
                        <li>Rickshaw</li>
                        <li>peity</li>
                    </ul>
            <div class="classify">分类</div>
                <div class="secondary">&#xe642;<span class="center">凑数好看用的</span><span class="right">&#xe636;</span></div>
                    <ul class="drop_list">
                        <li>百度ECharts</li>
                        <li>Flot</li>
                        <li>Morris.js</li>
                        <li>Rickshaw</li>
                        <li>peity</li>
                    </ul>
                <div class="secondary">&#xe642;<span class="center">凑数好看用的</span><span class="right">&#xe636;</span></div>
                    <ul class="drop_list">
                        <li>百度ECharts</li>
                        <li>Flot</li>
                        <li>Morris.js</li>
                        <li>Rickshaw</li>
                        <li>peity</li>
                    </ul>
                <div class="secondary">&#xe642;<span class="center">凑数好看用的</span><span class="right">&#xe636;</span></div>
                    <ul class="drop_list">
                        <li>百度ECharts</li>
                        <li>Flot</li>
                        <li>Morris.js</li>
                        <li>Rickshaw</li>
                        <li>peity</li>
                    </ul>
        </div>
        <div class="mainbody">
            <div class="search">
                <div class="i btn">&#xe609;</div>
                <input type="text" id="search_input" placeholder="输入搜索内容" class="input">
                <div class="bell i">&#xe637;
                    <div class="amount">13</div>
                </div>
            </div>
        <iframe src="./my.html" id="iframe"></iframe>
        </div>
    </div>
    <script src="node_modules/axios/dist/axios.js"></script>
    <script>
        axios.get('https://ty.php800.cn/api/token.php',{
            headers:{
                TOKEN:localStorage.getItem('token'),
                SAT:'1234567'
            }
        }).then((res)=>{
            if(!res.data.verify){
                window.location.href='./login.html'
            }
        })
        function $(selector){
            return document.querySelector(selector)
        }
        function _(someone){
            someone.onclick=function(){
                $('#iframe').src=`./${this.id}.html`
            }
        }
        _($('#my'))
        _($('#overview_table'))
        _($('#article_all'))
        _($('#classify'))
        _($('#role'))
        _($('#article'))
    </script>
    <script src="./js/homepage.js"></script>
</body>
</html>